<?php
namespace app\index\controller;
use think\Controller;
use think\Db;



class Index extends Controller{
    
    public  function  hello($name="小张",$city="济南")
    {
        return 'Hello,' . $name . '! You come from ' . $city . '.';
    }
    
    public function index(){
        
        $data=Db::name('data')->find();
        $this->assign('result',$data);
        return $this->fetch();
    }
    
    public function getUrl()
    {
        return url('blog/read?name=thinkphp');
    }
    
    
    public function load()
    {
   
    }
}




